<template>
  <div>
    <div class="container">
      <h1>404 Not Found</h1>
      <p>抱歉，您访问的页面不存在或已被移除</p>
      <router-link to="/" class="back-home">返回首页</router-link>
    </div>
    <Footer />
  </div>
</template>
<script setup>
import Footer from "@views/common/Footer.vue";
</script>
<style scoped>
.container {
  min-height: calc(100vh - 160px); /* 减去导航栏和页脚高度 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background-color: #f8f9fa;
}

h1 {
  font-size: 6rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  letter-spacing: 0.2rem;
}

p {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
}

.back-home {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: #42b983;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.back-home:hover {
  background-color: #359469;
}
</style>